package org.apache.ocean.database;

import java.util.ArrayList;
import java.util.List;

import org.apache.ocean.util.CaseInsensitiveStringMap;

/**
 * @author jasonr
 */
public class SQLTable extends CaseInsensitiveStringMap<Integer> {
	public String name;
	public String primaryKeyColumn;
	public List<String> postCreateTableSQLs = new ArrayList<String>();
	public String createTableSQL;
	public Class clazz;

	public SQLTable(String name, Class clazz) {
		this.name = name;
		this.clazz = clazz;
	}

	public void addPostCreateTableSQL(String sql) {
		postCreateTableSQLs.add(sql);
	}

	public void add(String name, int sqltype) {
		put(name, sqltype);
	}
}
